import axios from '@/libs/api.request'

export const getDepartment = (info) => {
  return axios.request({
    url: '/department/index',
    method: 'post',
    data: info
  })
}
export const getDepartmentUserList = (info) => {
  return axios.request({
    url: '/department/getUserList',
    method: 'post',
    data: info
  })
}
export const getDepartmentDetail = (info) => {
  return axios.request({
    url: '/department/add',
    method: 'post',
    data: info
  })
}
export const departmentSave = (info) => {
  return axios.request({
    url: '/department/save',
    method: 'post',
    data: info
  })
}
export const departmentDelete = (info) => {
  return axios.request({
    url: '/department/delete',
    method: 'post',
    data: info
  })
}
export const systemUserAdd = (info) => {
  return axios.request({
    url: '/system_user/add',
    method: 'post',
    data: info
  })
}
export const systemUserDelete = (info) => {
  return axios.request({
    url: '/system_user/delete',
    method: 'post',
    data: info
  })
}